#!/bin/python
#-*- coding:utf-8 -*-
# Filename:    main.py
# Revision:    1.0
# Date:        2012-06-14
# Author:      simonzhang
# web:         www.simonzhang.net
# Email:       simon-zzm@163.com
### END INIT INFO
import sys
import tornado.ioloop
import tornado.locale
import tornado.web
import tornado.database
from dbmodel import *
from interface import *



class UrgentJobHandler(BaseHandler):
    @tornado.web.authenticated
    def get(self):
        _get_user = self.check_user()
        _domain, _title = get_domain_title()
        _get_user_left_menu = get_user_left_menu(_get_user)        
        self.render("templates/urgent_job.html", domain=_domain, title=_title, \
                                                 username = _get_user, \
                                                 tems=_get_user_left_menu)
    def post(self):
        self.clear_all_cookies()
        self.redirect("/")

